package com.ruoyi.thread.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

// 消息实体
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    private Long id;
    private Long userId;
    private String title;
    private String content;
    private MessageType type;
    private Boolean read;
    private LocalDateTime createTime;
    
    public enum MessageType {
        SYSTEM, ORDER, PROMOTION, SECURITY
    }
}